.ui.grid#nav-user-bar
  .four.wide.column
  .eight.wide.column
    .ui.text.menu
      = link_to '呼吸精选', root_path, class:'active item'
      = link_to '读书',posts_path,class: 'item'
      = link_to "音乐",musics_path,class: 'item'
  .four.wide.column#user-bar
    - if current_user
      .ui.right.floated.secondary.menu.inverted
        .item
          = button_tag class: 'ui search icon inverted circular green button user-bar-search' do
            %i.search.icon
        .ui.dropdown.link.item
          = image_tag current_user.avatar.url,class:'ui image circular user-avatar'
          .menu
            = link_to '#',class:'item' do
              个人中心
            = link_to :logout,class:'item' do
              退出
    - else
      #login-out
        .ui.buttons
          = link_to '注册',signup_path,class: 'ui blue inverted button'
          .or
          = link_to '登录', login_path, class: 'ui purple inverted button'